<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ taglib prefix="c"
	uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>都市信息网</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body background="images/back.gif">
	<center>
		<table border="0" width="920" cellspacing="0" cellpadding="0"
			bgcolor="white">
			<tr>
				<td colspan="2">
					<!-- 页眉 --> <iframe src="admintop" frameBorder="0"
						width="920" scrolling="no" height="200"></iframe>
				</td>
			</tr>
			<tr>
				<td width="230" valign="top" align="center">
					<!-- 左侧 --> <iframe src="view/left.html" frameBorder="0"
						width="225" scrolling="no" height="400"></iframe>
				</td>
				<td width="690" height="400" align="center" valign="top"
					bgcolor="#FFFFFF">
					<table border="0" width="670" cellspacing="0" cellpadding="0"
						style="margin-top: 5">

						<tr height="30">
							<td style="text-indent: 5" valign="bottom"><font
								color="#004790"><b>■查询结果</b></font></td>
						</tr>
						<tr height="1">
							<td></td>
						</tr>
						<tr>
							<td align="center" style="border: 1 solid">
								<table border="0" width="100%" rules="rows" cellspacing="0">

									<tr align="center" height="30" bgcolor="#F0F0F0">
										<td width="6%"><b>ID值</b></td>
										<td width="11%"><b>信息类别</b></td>
										<td width="38%"><b>信息标题</b></td>
										<td width="22%"><b>发布时间</b></td>
										<td width="15%"><b>联系人</b></td>
									</tr>

									<c:if test="${empty requestScope.list }">
										<td colspan="5" align="center">『<b>没有查询到符合条件的信息</b>』 <a
											href="javascript:window.history.back(-1)">返回</a></td>
									</c:if>
									<c:if test="${!empty requestScope.list }">
										<c:forEach items="${requestScope.list}" var="temp">
											<tr height="30" id=${temp.id }>
												<td align="center">${temp.id}</td>
												<td align="center" style="text-indent: 10">${temp.info_type.type_name}</td>
												<td align="center" style="text-indent: 5"><a
													href="singleshow?id=${temp.id}&type=${temp.info_type.type_sign}">${temp.info_title}</a></td>
												<td align="center">${temp.info_date}</td>
												<td align="center" style="text-indent: 10">${temp.info_linkman}</td>
											</tr>
										</c:forEach>
									</c:if>
								</table>
							</td>
						</tr>
						<tr height="1">
							<td></td>
						</tr>
						<tr height="30">
							<td align="center">
								<table border="0" width="100%" cellspacing="0">
									<tr>
										<td width="60%"><table border='0' cellpadding='3'>
												<tr>
													<c:if test="${!empty requestScope.list}">
														<td>每页显示：${fn:length(list)}/6
															条记录！当前页：${pageNo}/${count} 页！</td>
													</c:if>
												</tr>
											</table></td>
										<td align="center" width="40%"><table border='0'
												cellpadding='3'>
												<tr>
													<td rowspan="3"  align="right">
													<c:if
															test="${pageNo != 1 && (!empty requestScope.list ) }">
															<a
																href="searchshow?pageNo=${1}&sel=${sel}&tp=${tp}&wd=${wd}">首页</a> &nbsp;&nbsp;
															<a
																href="searchshow?pageNo=${pageNo -1}&sel=${sel}&tp=${tp}&wd=${wd}">上一页</a>
														</c:if> &nbsp;&nbsp; <c:if
															test="${pageNo != count  && (!empty requestScope.list)}">
															<a
																href="searchshow?pageNo=${pageNo +1}&sel=${sel}&tp=${tp}&wd=${wd}">下一页</a>&nbsp;&nbsp;
																<a
																href="searchshow?pageNo=${count}&sel=${sel}&tp=${tp}&wd=${wd}">尾页</a>
														</c:if>
														</td>
												</tr>
											</table></td>
									</tr>
								</table>

							</td>
						</tr>
					</table> <br>
				</td>
			</tr>

		</table>
		<!-- 页脚 -->
		<iframe src="view/end.html" frameBorder="0" width="920" scrolling="no"
			height="70" style="margin-top: 0"></iframe>
	</center>
</body>
</html>